package com.wzy.designpattern.creational.prototype;

import lombok.Data;

/**
 * 描述
 * 创建人    Wzy
 * 创建时间: 2020-05-15  20:01
 */
@Data
public class Mail implements Cloneable {
    private String name;
    private String emailAddress;
    private String content;

    public Mail() {
        System.out.println("Mail Class Constructor");
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        System.out.println("clone mail object");
        return super.clone();
    }
}
